[gitlab] Startup improvements

 * Be more specific about directory permissions
 * Configure git settings for the gitlab user account
 * Create shared secret files for gitlab and gitlab-shell
 * Run gitlab self-check on init