update base API project.

Basically everything is set up and working (controller tested).
Still need some refinements but the foundations are here.