Adds session keepalive support. Closes #35