Added some methods and supporting functions to get security information; uid method now actually works.