make the initializer take an options hash

We can set {env: development} if we want to use the limited test server
We can set {env: production} or leave it unset to use the production server