refs #242 Put callbacks in their respective classes, add exception
handling for safety. Remove a dead file and do a little cleanup.
refs #243 Don't add the _id field automatically to the profile collection

remove dead code

Add exception code

Fix test

Fix test remove dead code
refs #267 Remove Namespace class, move its one useful function to
NamespaceString