Api as service

Merging this bad boy.