Add projectile-rails-server command to the keymap.
Terminate the server process also when shutting down emacs.