refactored getcompression and getresolution callback and errors

added error handling function and refactored public API

added comment to handleError
Merge branch 'nl-add-compression-resolution-getters' of https://github.com/tessel/camera-vc0706 into nl-add-compression-resolution-getters