Added Multiple Hardware Revision Support

Added the option to choose between hardware version A or B to the API,
Android client and web client.
Updated the server to select the appropriate ports based on hardware
revision.