Fixing text formats

The previous code was using a non existing text format named
“plaintext”. In D7 core is the plain text format using machine name
“plain_text”. This commit fixes this problem, and makes it possible to
overwrite the text formats used.