Fleshed out the API client and notification stuff