Added Legacy note type.
Role given a code field.
Added new default roles and bound note types to them.