Use AS.on_load in the initializer

without these hooks, `require 'turbolinks'` immediately triggers ActionController, ActionDispatch, and ActionView initializers
fixed _nonHtml to work on pathname only (without query string), added test
Merge pull request #343 from amatsuda/use_on_load_hook_in_initializer

Use AS.on_load in the initializer
Merge pull request #344 from cowbell/without_extension

fixed _nonHtml to work on pathname only (without query string), added test
Add entry to changelog for #344
Don't process links with no href attribute - Fix #345
Make class check compatible with uglifier - Fix #346
Use hostname and port instead of host when comparing origins - Fix #347
Use function for comparison instead of function name
Use the action_controller hook for overriding the referer method because there is no action_dispatch hook