Refactoring and common styling rules.
Javascript refactoring continued. Controllers and app in separete modules. Device representation extracted to individual module.