use config file for api

we don’t need a hardcoded api url with this
deployment stuff

no more hardcoded server settings and an automated deploy process