scrutinizer cleanup

- reduce code duplication via updateObject() method
- cleanup getPart()
- remove debug
- ensure arrays are always defined
- centralize response decoding and error handling
- upload code coverage to scrutinizer
- add scrutinizer config