Improves Restler to allow overriding the status code by setting `$this->restler->responseCode` from the api method.
Improves HtmlFormat to use recursive mode and reasonable file permission to create the cache folder #346