WConfd.Client: Add `withLockedConfig` helper function

Blocks until a a lock on the config is obtained.
Query.Server: Extract `handleQuery` from `handleClassicQuery`
WIP: Filtering. GET, POST, PUT, DELETE all work