Static generator changes

Moved code from script into new module, and now calling that from the
script. Also added new admin page for running static generator and now
also does it automatically when you add or edit a blog post.