Make base url

Not complete yet, still needs:

- [x] Review
- [x] Testing