Added user accessible logging toggle.

Call allow_logging to enable FileLog key generation, else forbid_logging
to disallow it. Currently forbidden users are still written with key of
'unknown'. Might change that yet.