tested endpoint registration and authorization - ready to merge

This is code I wrote a while ago that I still need to merge with develop. I had to basically recreate the branch and reupdate my code so that it is up to date with develop. Please review the unit tests I did so that I can merge with develop.