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

These will also be useful for code which performs updates (over wireless or serial for example) and the code then want to simuate a hard or soft reset to execute the new code.