Jnygaard depth res testing

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