Don't test command more than once

Memoize the result of remote_commit_exists_locally? and
database_configured?
Don't bother about migrations in deploy if no database is configured
Fix bug in counting rev-list

I stupidly used slice when I meant split.
Bump to version 0.0.3