Made better use of express functionality

Changed 'res.end', to 'res.send' calls, and removed header definitions,
as that is taken care of by express