First commit. Ready for rails 4.