Added the start of the Managed API, which performs much more detailed
parsing and session management than the Bare API