(Optional) asset pipeline support

Checks whether or not Rails is defined, and wether Sprockets is (in case of Rails <3.1). In the event they're both defined we use the pipeline compiled file.