Updated spawn-perl and app

Fixed the spawn-perl to remove cgi headers written by perl script and
pass them as a json object to client in getHeader method.
Renamed the app.js file and make grammatical changes to the call of
spawn-perl