Add README for the cache folder + fix travis
Cache docs
Http phpdoc
Add more PHPdocs everywhere

Also some minor minor refactoring