Added rails specific loading in a railstie as Rails.root is not defined otherwise. Changes priority so that Rails specific files overwrite others.