Various mapping / config tweaks.
Moved rails mapping to a more appropriate location.