Added listener functionality to environment.
Removed user model controller, because user handling is to happen server
side.
Added function comments.
Added required file.