Ensure directory exists before changing in popen

If the directory does not exist, we want to ensure that it does.

Forking repos will fail in some situations because of this issue.
Whitespace fixes to patch
Read configuration variable file if it is present
Reduce image size.

Checking the site with the PageSpeed extension, one of the reports was
in reducing image size.  This reduced the number of bytes by 67%.

It was done with optipng -o7 -fix *.png in the app/assets/images dir.

References:
  optipng: http://optipng.sourceforge.net/
  PageSpeed extension: https://developers.google.com/speed/docs/insights/using_chrome
Fix Markdown help page: escape file link syntax example to leave it unprocessed
Fixed comments for running gitlab in a non-root path
- If you don't edit gitlab-shell/config.yml, you wnon't be able to push via SSH (as described here: http://stackoverflow.com/questions/15746336/gitlab-cant-push-code-to-server)
- If you don't re-run sudo -u git -H bundle exec rake assets:precompile RAILS_ENV=production, some icons won't be visible
Allow public repo searching

GITLAB-1386

Change-Id: I9a0bbe8db1a9bb00cef33b3e1854d78844b70a45
Updated convience method to private
Add client_max_body_size to nginx site

Added the client_max_body_size declaration to the nginx server block to prevent 413 errors when http post body is larger than the default (1m).
diff view on commit with parallel diff view

TODO: fix comment forms to respect left and right columns
Add X-Forwarded-For to nginx config
Integration with Assembla
Reorder steps to install web server before running gitlab:check
Fix 6.3 branch name

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
minor fix to command
Merge pull request #5654 from sairam/patch-1

minor fix to command
Merge pull request #5640 from carlosparamio/assembla_service

Integration with Assembla
Update ruby to patchlevel 353 (security update)

https://www.ruby-lang.org/en/news/2013/11/22/heap-overflow-in-floating-point-parsing-cve-2013-4164/
Merge branch 'update_ruby_master' of /home/git/repositories/gitlab/gitlabhq
Enable redis in travis

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>