Added viewport size tracking
Moved directives, controllers to separate files. Moved inventory data to json file