Adds Authentication Decorator

This adds in a decorator that takes a cookie and checks to see if it
exists in the Couch document that stores session cookies. If the
decorator finds the cookie, it returns the function that it decorates,
otherwise, it raises an error.