Some progress has been made

Generating contexts and principals.
Parsing & unparsing principals.
Generating useful error messages.
Possibly (havent tested) handling aname2lname.