Refactored the projection code

Refactored the way the image plane is spanned. Added a square fovea. Removed psidispatcher.