abstracting api from main script, better server startup logic, adding health-check non-versioned endpoint