[#392] moved the actual atlas building for spritesheet into the texture atlas

BROKEN for now, did not have time to finish before leaving
[#392] fixed exception on atlas indices parsing
[#392} add parsing of sprite sheet from the Texture Constructor
Merge branch 'ticket-392'