Error handling for Redis queries. Closes #12

This commit modifies the return types of the functions that perform
Redis queries to int so that they can signal if the something went wrong
in the request and no reply was returned.