moves some logic from command line into console -- so it's always consistent between the rake task and the cli.
updates readme to include documentation for the cli.