Addressed the points raised in https://github.com/gem/oq-commonlib/pull/50
Addressed more points
Removed a partially duplicated function
Merge pull request #50 from gem/db-migrations

Support of the oq-lite command-line tool
Merge branch 'master' into build-doc