removes api subdomain
sets up a proxy required for angular to rails local development