Add --reset option to trigger a reset both before and after flashing.

For issue #190