Adds image_hard_limit and reply_hard_limit options.

Also reworks the numPosts() function and uses it elsewhere too.
Merge pull request #116 from Macil/hardlimits

Adds image_hard_limit and reply_hard_limit options