finish ui-router migration
Introduce plugins
R.js is now working.

Grunt build is not ready for dist
fix r.js bug
build almost finished