update qs and other libraries

update qs ~0 -> ~1 because:

https://nodesecurity.io/advisories/qs_dos_extended_event_loop_blocking

also update other libraries to the latest major releases
remove deprecated jade doctype
remove deprecated app.configure

replace with code that checks app.get('env')
Merge branch 'lib-updates'
Release 3.6.0