Thread create, bug fixes in posts

Added the threads.create function that allows users to create threads.
This required updating the posts.create method to return the thread_id
along with the created post's id because it is needed in front end to
redirect the user.