Adding AtlasRenderer class.
Refactoring TexAtlas to use the new AtlasRenderer class.

Also adding a testcase for it.