Add crremote & crrebase functions

Credits to CM

Change-Id: I3928796d08ba8d7867f263e6475a6b7554500306
Merge "Add crremote & crrebase functions" into jb3