Add "revision" command to get revision of a database.
For revision command, get target DB from scripts if present.
Tests for revision command.

Fixes #23.
Merge branch 'revision_command'