Fundamentals in generalized elasticity and dislocation theory of quasicrystals: Green tensor, dislocation key-formulas and dislocation loops