Pimped out microblog originally based on Miguel Grinberg's Flask Mega-Tutorial.