Added better support for usage outside of rails (i.e. Middleman)

I'm testing for Rails and Sprockets support and only registering the Engine if Rails is available. If sprockets is there the javascripts path gets registered. This way they can be included in js files using `//= require 'angular.js'`