#000 - Fix Rails logging.

1. Development server no longer logs into /tmp/debug.log. Removed stale
   log4j.xml files from gadgets engines. It will now be in server/go-server.log
   and DEBUG logs are turned on by default.

2. For production, RAILS_LOG_LEVEL environment variable is introduced. It sets the
   log level. However, that decides what Rails sends to Log4J.  Log4J has its own
   level (in log4j.properties) which decides what it appends to the file appender.
   Usually these two need to be in sync. You can set one to a high level and the
   other to a lower logging level and the lower one will will (meaning, WARN will
   be chosen instead of INFO instead of DEBUG, etc).
#000 - Fix inline ERB partials.

Fix the inline of partials done in the package step of Go (where
render :partial => abc gets inlined into the place it is called.

Previously patterns of this format were supported:
<%= render :partial => ... %>
<%= render_json :partial => ... %>

Fixes are:

1. Handle 'render(:partial => ...)'.

2. Handle 'render_json(:partial => ...)'.

3. Handle '<%== render_json(:partial => ...)' since it is used by ERB of Rails 4.
#000 - Handle empty string for RAILS_LOG_LEVEL.
#000 - Fix null check in HostNameValidator.

Was showing up as a 500 Internal Server error when you clicked 'Send Test Email'
in Server Configuration page, without entering any hostname.
Merge pull request #605 from arvindsv/fix_empty_hostname_validation

#000 - Fix null check in HostNameValidator.
Merge pull request #600 from arvindsv/fix_rails_logging

#000 - Fix Rails logging.
Merge pull request #604 from arvindsv/fix_inline_partials

#000 - Fix inline ERB partials.
Make Hound complain about javascript now.
#000 - Fix inline ERB partials again.

This reverts a part of 8916c9efbfc30a2868b666aa558c5a26c1209d13. The part which
handles '<%== render_json(:partial => ...)'. This is because <%== in ERB means
it does not need to be escaped, etc. Needs more thought before doing that.

Also, add an error message, when parsing of locals and scope fails, in
one specific way. It used to fail silently till now.
Merge pull request #610 from arvindsv/fix_inline_partials

#000 - Fix inline ERB partials again.
#560 - Fix server config validation issues.

Fixes:

1. Test Email functionality in server configuration page.
2. Validate LDAP functionality in server configuration page.
3. Reload Command Repo Cache functionality in server configuration page.

All were broken because CSRF token was not being sent, and in Rails 4, even
AJAX requests are checked for CSRF. Wasn't the case with Rails 2.