Add some methods to HTTPRequest and optimize ApplicationBackend/ApplicationFrontend