Added proper support for height/width in renderBody
Adapted to be much more modular

Allows for proper command-line parameters, so that it can be called by external
scripts more easily, to perform actions on demand.
Added database commands that calls the cronjob

Allows db sanity checks and (re)indexing on demand