Added logic to include source links in posts

When posting to reddit is successful, update the post with the reddit
source link for linking to the thread later. Also made changes to
templates to improve reusability.