Refactored Angular code. Updated ui-router to 0.2.0.