Experimental sorting by name.

Still using deprecated getTypeId() method, will remove soon.
Started rewriting sorting engine for Material.

It's not pretty but...  I'm sure a lot of it is unneeded.  I'll probably
end up switching back to a comparator, this is just a test using a
TreeMap.
Successful experimental name-sort build.

Using comparators this time.
Remove debug code.
Merge pull request #1 from zonedabone/Experimental

Experimental