Rewrote a lot of the code to make it more streamline and more efficient.

Preview here: http://hugo.sx/purplapp/posts.php