imported tile rendering stuff from old repo

Merged the tilerender stuff from the old ttjs repo into the new one :)

Improvements and examples will follow