Domless compilation

Adds a small shim to util that can take the place of can/util/library to enable DOMless compilation. It also fixes non-safe DOM calls (like accessing window or document).