Weighted norm inequalities, off-diagonal estimates and elliptic operators. Part I: General operator theory and weights