Redmine locale fix. Some RAL tweaks. Added line numbers to code-mirror.