Reset button functionality.

When button is pressed for short time (<1s) nothing happens.
When hold for 2 seconds device resets itself.
When hold for longer that 5 seconds device reset itself and boots to DFU mode.