Create new principals functionality

Added files that enable a user to remotely add principals
Corrections and improvements

Corrections and improvements following Evert's comments.