Refactor markdown to posts and add avatar uploads