Rewrote server in Ruby

Since bitpay has an API in ruby.