version 20131115 15:15 scutLaoYi
fix the bug in AppController, allow all authorized for admin.
remove the allow of 'index' view for all controllers, only admin can view the index page of UsersController.
change the router, link the homepage to controller MainpageController's index view.