965776 - allow library to be selectable

This commit contains a minor change to the environment selector
used on system and distributor edit to allow library to be a
'selectable' environment.  Without this change, library is
listed but cannot be chosen.
Fix log correlation by request uuid

Uuid correlation was set too late. It was showing wrong uuid for log
messages when uuid is being logged and level is set to :debug.

Uuid is now set in middleware right after request uuid determination
before any logging occurs.
Merge pull request #2343 from pitr-ch/quick/logging-uuid

fix log correlation by request uuid
Merge pull request #2345 from bbuckingham/select_library

965776 - allow library to be selectable