Refactored request module

Now caches all different types of requests
Fixed broken test by using tmp directory
Merge pull request #104 from jbeast/extra_caching

Refactored request module