add authentication using signed cookies.

The cookies used are compatible with Nodejs Express framework. Only
reading cookies is suppored, writing them is disabled as graphite-api
has no capabilities for performing authentication.