Rengineerized the creation of http service

Other changes: modified the pom file to use JDK 1.7 compiler