Mechanism extends AutoCloseable. Allow try-with-resources in Mechanisms
TODO
replace CollectionsUtils with google-collections
change layer2text - wip
try-with-resources for Mechanisms when signing