change server URL to localhost
simplify server side code
fix maven setup