Start compileApi

This adds the `compile-api` task which builds the api into `dist/api`. 


@jasonLaster need to add it here also plz