Add pyb.soft_reset() and pyb.hard_reset() commands.

Hi, I would like to merge your branch into my fork while learning git. Maybe this can be done in a different way.