Working on an updated configuration for ec2

...ons on the local machine rather than to the fully qualified url to save on network requests when on ec2 for https://github.com/OpenSourceFieldlinguistics/FieldDB/issues/838

* reduced network requests
* added CORS support

Whats left to do:
* turn the CORS support into a middle ware, currently its based on CORS-proxy project. It has only been tested for a few contexts, but appears to be working for POST on the existing routes... (it is working even when proxied by nginx).


nginx config which this works with:

```nginx

location / {
       proxy_pass_header  Set-Cookie;
       proxy_next_upstream error timeout invalid_header http_500 http_502 http_503 http_504;
       proxy_redirect off;
       proxy_buffering off;
       proxy_set_header        Host            $host;
       proxy_set_header        X-Real-IP       $remote_addr;
       proxy_set_header        X-Forwarded-For $proxy_add_x_forwarded_for;
       proxy_pass https://authservice;
    }
```