States cache

This is the implementation of states cache, which can be used in order to make fetching status images faster.

When deployed to hub, it will start saving the states and then we will be able to use it in travis-api.

I've used memcached, because of the simplicity of the implementation, we  may consider using something else later on.