Rename info command to pwd and include revision information in the
output.
Add cd command and refactor the logic for selecting databases and
documents.