error handling to server & mods to generator

Added in some error handling to the server side and made some minor mods
to the generator (index.js) also added templating to devconfig.json