Reverted AtlasRegion/Sprite changes

Also brought back some methods missing I previously removed from the API
so broken code throughout should now be working again
Redo the writing of atlas json