add controller to app.js

Added the controller to app.js so that it can be read by sencha. This allows the controller to be used by sencha.
add function calls to view

Added the function calls to the view so that the intent can be properly called.
add functions and build controller

Built the controller for use by Sencha and added a function to use intents to go from one app to another.
Merge pull request #1 from jabroderick/add-plugin

Add plugin