Big improvements to parsing, and now outputs proper docurium json files.

This is to make docthunder actually usable, the proper templating will be added
soon.