Update gemspec to include Rack::Test for `Cache` command

- Better implementation of methods for HTML file generation
- Create public directory if it does not exist