On-device allocation into shared and local memory for ptx

Also some more scheduling primitives for ptx
Fix camelCase on static image methods
Make loading/saving images do appropriate copies and dirty tracking
bilateral grid works on ptx
local laplacian works with ptx again