Refactored `parseExtends`, `parseInclude` and `fetchText` to support using extends and include when doing single-file optimization with r.js.