Make rough version of Ruby SDK work, still needs to be made secure and moved from controller