Add key parsing to authorized_keys handling

As Ayufan suggested, adding parsing to authorized_keys handling.