Added support or better error handling.
Added jshintrc for jshint support
Fixed broken code

1) Renamed factories since we do not want to conflict with angular dependencies.
2) Wrapped code in a use strict function
3) Fixed some syntax errors
4) Fixed a problem that was causing angular not to bootstrap