Move function to start compile-api to Api.hx
* Store compile output to prevent compiling an app twice
* Autoload compile output