Implemented an optional resource cache and generalized handlers
The default server name and content type can be changed.