Fix some bugs, and add blog model with a method for retrieving the latest post.