Updating JS module definitions to avoid circular dependencies
Removing JS from userbundle layout
Adding template module, login module