Refactor Tiler
Update tests (nodeunit up to v20)