Added support for logging in client application
Extracted resources to separate module