Use templates for accessing apiUrl

ApiUrl is no longer exposed by loopback-sdk-angular, instead we generate a build
time file which tells which url we are using.
Cleanup