Weighted power counting and Lorentz violating gauge theories. I: General properties