Abstractise away jade precompiler, Async chapter loading

Moved all the jade-related precompiler logic in a separate file. Also implemented async chapter loading.