Add ability to set content generator callback in tornado server
Fix Spider cache tests. Add `clear` method to cache backend