Saving partial custom TMX loader before deleting.

I'm going to see if tmxlib would be better for the job.  After all, why
reinvent the wheel?
Made statemgr global, included tmxlib

tmxlib seems like it would be well suited for my needs, so I'll use that
instead of a custom solution.  Made statemgr global to more easily
handle game state changes from anywhere.