Import gitlab 5.4.0 port from fidaj redports repo http://redports.org/browser/fidaj/devel/gitlab.