[authorized_key] refactoring for improved readability

I want to improve the authorized_key module, as suggested on the ansible-devel mailing list.
Before that I propose the following refactoring of the existing code to improve readability and maintainability.
Modules have to be compatible with python-2.4 so we can't use context managers