Toscalib

Interim code checkpoint.
Lets consider a refactor here.
  * http://refactoring.com/catalog/replaceNestedConditionalWithGuardClauses.html