Re-wrote most of the authorization loading function.
Fixed loading saved authorizations from a file.
Merge pull request #3 from chead/1_rewrite_load_authorizations

Rewrite load authorizations