Correct use of Q promises
Client-side TOC compilation + Code cleanup + Fix promise misuse
No additional compilation required for TOC generation
Fixed test so it conforms to client-side TOC loading
Merge pull request #72 from dapetcu21/master

Better TOC generation workflow.