Jnygaard depth res testing

Tested with examples/jpg_proxy_test and frview (from the origin/jnygaard_testing-branch) and seems mostly ok.
If this branch works for those with vital applications (cloudflow?) I would suggest to pull it into the master.