error handling and testing for getSubredditPosts.
Merge branch 'master' of github.com:nicholaskariniemi/freddit