Abstract library for handling account sessions and cookies