Front end router

1. Fix auth api
2. Build html5 router and controller
3. Re-implement login page using router and controller

@dafeizizhu Can you please merge it?