fixed contex-param -> contextConfigLocation and removed useless applicationContext.xml dispatcher-servlet.xml
set DefaultHttpClient params with custom values
applied best practices for the management of http connection
added junit test and fixed pom to run app on tomcat