Added support for creating the security.metadata.xml file as logged in
user.

References #446.