Moved posts into their own files. Added sorting functionality.