Remove newline characters from ssh key before processing it.
Fixes issue #370: https://github.com/gogits/gogs/issues/370
remove extra comma
fix wrong variable name
fix typo
import strings
Merge pull request #372 from andmarios/dev

Remove newline characters from ssh key before processing it.