Add UI Router for state machine transitions and url rewriting.