Move version handler to shared web code.