966901: Preventing users from deleting Library

Preventing users from deleting Library environment. Also, combined checks into
one method since it's being called elsewhere in the API. Finally, we're
checking that the organization is being deleted in which case we're allowing
the library environment to be deleted.
Merge pull request #2436 from daviddavis/temp_1370469385

966901: Prevent users from deleting Library