Initial work on better error handling.  Switched to angular-ui-router.