Sonar issue fixes
Added sonar.sh script
Fixes #3: removed dbresolver from MongoMetadata and fixed side effects
Fixed Bad practice - Class is Serializable, but doesn't define serialVersionUID
Fixed mongo metadata unit test
Merge pull request #4 from jewzaam/pr-sonar

Fixes for some sonar issues