fixes #2740 - copy code from lib/foreman.rb to initializers/foreman.rb
fixes #2740 - move regexp_extensions from require in Gemfile to initializers
fixes #2740 - move core_extensions.rb and timed_cached_store.rb to initializers and remove require statements in application.rb
fixes #2741 - remove dash from -%> to %>
fixes #2741 - rails 3 syntax
fixes #2741 - Minitest refactoring
fixes #2741 - remove unnecessary require statements
fixes #2741 - misc code fixes