First pass at $stateProvider decorator API.