Move routing to client-side using ui-router.