Moved serial function

This patch should be merged in conjunction with the Arduino version checking patch to -tools.
 
This patch moves the setup of the 'ser' and 'conn' variables to a method within brewpiVersion.py so that it can be used by other files as well- specifically for this case, the updater.py so that it can check the version of the hex file on the Arduino."