Break up Block.ts

Also migrate DomUtils.ce to use a map for attributes.


forEach has significantly [slower perf](http://jsperf.com/foreach-vs-loop) than just a standard for loop. I think for something such as DomUtils which will be used so often, we should be trying to optimize for speed as much as possible.