[Big] Ported JS code to CS modules using require. Removed prototype extensions and half-backed include feature. Updated docs.