Move define block
Remove api.js
Trying to get tests working
Fix ui router problems