(WIP) Add gitlab ci support

Do not merge yet, this is a work in progress.

Todo:

- [x] Fix failing tests
- [ ] Write tests for ci classes
- [x] Re-Add SSL support
- [x] Fix Nginx support
- [ ] Get feedback
testing with the actual gitlab-ci repo now, maybe their gemfile is busted