updated the API internals. The only BC break is probably the HappyRApi->send that has been renamed to HappyRApi->api
added some tests