Merge pull request #31 from muesli/master

Nicer code, clear exit conditions. Fixed passing "false" to insert_posts.
* Abort after three consecutive errors.