Added pan and zoom capabilities. Refactored some code. Working on better 'map-like' zooming.