Delete post bug fix.

If you deleted a post which was the latest post on a thread, the thread
would then fail to list since it didn't have a latest post. Fixed the
delete method to reset the latest post.

Added UI test for such.