update to rails 4.0.4, add dotenv.
only use dalli cache in production environment.
quick spec for cached global settings behavior.
update ruby, add Guard.