Clean up and enhancement
1. change window.plugins.alert to alert
2. got rid of error handler not used in app.js
3. changed Router and ViewManager to return an instance instead of constructor