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
Allow public repo searching

GITLAB-1386

Change-Id: I9a0bbe8db1a9bb00cef33b3e1854d78844b70a45
Updated convience method to private
Fix #5313 hipchat 0.14.0 to use http_proxy
Add import_url param in API projects create
[API] add parent_ids to specific commit informations
Add comment about tls for ldap method

`omniauth-ldap` also supports tls for ldap method
Make sidebar links more accessible, display: block
Fix HTTP push to public repos

When doing an HTTP push, git (as of v1.7.9) first do an info/refs
request, and only if this request requires authentication it asks the
user for its password and authenticates further requests.

The initial request normally clears without auth on public repos as it
doesn't update any ref. This patch forces every git-receive-pack
requests to provide authentication.
Added dropdown menus to issue#show page for assignee and milestone
Customization and previewing of broadcast messages
Merge branch 'feature-issue-actions' of https://github.com/jasonblanchard/gitlabhq into 6-5-dev
UI improvements to issue show page

* labels moved below the issue
* removed margin in "created by..." area

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
remove unecessary bold text on Issue#show page

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Added milestone_options and assigne_options helpers

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Merge branch 'atomaka/feature/message-colors' of https://github.com/atomaka/gitlabhq into 6-5-dev
Move broadcast colors CHANGELOG to 6.5

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Add validations to BroadcastMessage color and font

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