Incorporated ui-router-based routing/state handling.