Added check in PhatRPC for recovery state, added handles + API calls,
working on client-side caching and keep alives
Added stub for keepalive in phatRPC, moved client test to tests folder