Make browserify deps non-dev (fixes #752)
Draw layer-by-layer
Push tile loop down into rendering functions