Prevent GDB from erasing bootloader

Update gdbserver to automatically detect the starting flash address.  If the address is
non-zero then erase page by page to prevent erasing bootloader code.

Also add erasePage function to other targets.