Fixed login functionality
Added code to check if the api has been initialized. Jira Issue: CWRC-24
Added the entity collections to cwrc objects