Remove extra spaces from switch queries

These names are becoming part of the protocol, so they have to make
sense, not just look neat.
Generate routes for settings groups at start time

Make the routes table driven. Add 'switches' and 'modem' groups.
Add /settings/date

Return the current date/time.

Also the index will be returned sorted.
Make consistent output on query-all

Sort the commands and sort the output keys.