Merge pull request #11 from varjoranta/master

separate view objects for REST API from core objects
add methods for getting running repair runs

* cleanup postgres storage layer with try-with-resources