Adding hashcommit helper functions to core
Fixes to rebase and hookups to command line usage