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
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
Add comment about tls for ldap method

`omniauth-ldap` also supports tls for ldap method
Update installation.md

Updated the version of Git used in the section for compiling Git from source.

Also, changed the verbiage used in the section "Initialize Database and Activate Advanced Features". It previously said to type 'yes' to install the database.
refactor omniauth configuration method

This refactoring allows a user to use omniauth providers which do not
use ```app_id``` and ```app_secret``` without needing to change the
devise configuration.
 Added support for Go's repository retrieval.

 - Simply adds the releavant meta link in the project's show action.
 - Information about this meta tag can be found here:
   http://golang.org/cmd/go/#hdr-Remote_import_paths
Use project methods instead of attributes.

- This should work correctly in all cases now.
- Added a new project method that returns the web url for a project without
  the scheme prefix.
Use web_url for web_url_without_scheme.

- Previus version was still incorrect as it ignored cases where GitLab would
  be installed in a custom location.
- This assumes that if this method can be calle, web_url will return a valid
  URL.
Merge branch 'master' into logo-white-compress

Conflicts:
	app/assets/images/logo-black.png
	app/assets/images/logo-white.png
Another optipng run over png's.

Ran optipng -o7 -fix over all png files. This should make pages load a
tiny bit faster (you can test this with the pagespeed tool on firefox or
chrome).

It might be an idea to add *lossless* image compression optimization
runs to the release process.
Also optimise gifs with gifsicle.

These are the same gif files just after running
gifsicle -b --optimize **/*.gif
Simplify upgrade guide based on 6-4 functionality mentioned by Jacob.
Update the init.d file to the correct locationof the example defaults file
Update the example defaults, include the rest of he variables
Add instructions for custom password length limits
Explain where the default password validation is
Removed hash from "<user> #pushed to branch..." Hipchat notification
Fix deprecation in specs

From https://github.com/gitlabhq/gitlabhq/pull/6053
fix n+1 problem for namespaces
Use instance methods for system_hooks_service

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