Added viewport management for translation. Implemented some panning in the flatengine demo.