Made generatePinToken a generic method for any kind of token
pinRegister now requires a PINTOKEN to register new PINs
Changed "success" (bool) value in pinJSON for "state" (int). Updated function calls in pinRegister and pinRequest. Now pinRegister returns the virtualhost assigned to the PIN.