[Serial.py] Fix bug in 'close()'.
[BDM.py] Add some utility functions.
[BdmModule.py] Rename registers.
[FlashModule.py] Rework Flash class.
[pybdm_hexdump.py] Add communication port parameter.