Ability to get/set apiKey via exported method call

My app is long-running, so it would be best if a server-restart were not required if I wanted to change the `apiKey`.

This change is backwards compatible, it just adds two new methods, `getApiKey` and `setApiKey`