Split JS loading
Fix JS loading
Add comments, indent, small fixes
Be sure to remove empty dirs in the good order
Detect empty Gitolite repositories (for real)