trader: implement automatic stale order cancel support
trader: Only use TradeAPI if we're capable of acting on it

Due to OKCoin's API restrictions, we have one of the worst coding hacks
for any language in existence here; sleeps!

Let's be sure to totally avoid calling the private API functions (and
consequent sleep) if we can't act on them.