Extracting webRequest class to facilitate making a request over the web using apache http components. Also fixed typo in AppTest.java