Cleanup, pan, zoom (sorta broken), paint cursor, various fixes