Use my gem 'rangy-rails' to provide rangy libs.
Updated the definition model to support start/end/direction attributes
Added validations to Definition model.
Posting defined lyrics from the song page works now.

Only issue left is the use of compareNode… which happens to be a deprecated and removed method in firefox.