fixed some cursor and resizing bugs
fixed json bug
Code cleanup.
Added test case for custom wms with non-mercator projection (not working
yet).