[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.