Implemented the '/fieldtech/device/sync' request and refactored all the request handlers to use higher-order functions for checking for the existence of 'vendordevice_id' in the POST data