Complete re-write of btce.pm.