Consolidating blog URL generation into blog_model and and a few bug fixes.