can now --writedb=filename and --readdb=filename to cache a fully synthesized database (useful for repeated calls to examine different aspects);
node state (offline/down) now stored as an array, just as properties+warnings have been;
the --state option now searches both node state (offline, down) and warnings (overmem, overload);
minor optimizations for clarity and consistency