Fix comment in rundbquery.py
Add run state as part of selection criteria

TODO: Allow passing custom function to select runs.  Custom function
will take the run info dictionary as input and return a boolean as the
decision.
Bug fix: timemodule → time

timemodule is probably an alias to time; not so on plus.
Setup sys.path to import rundb.RunDB and add tests
Allow "import and run" testing procedure
rundb.RunDB tests are expected to fail

rundb.RunDB returns a run info dictionary which is slightly different
from the rundb JSON interface.  This requires custom handling of the
dictionary; until that is implemented, the tests will fail.