Fixed php strict (5.5) errors in tests and app. Added static service getter in base classes. Corrected static definition for models.