Added HttpException class.
Added 'dispatchRequest' method.