More languages. Little refactoring of replacements so they can be shared. Fixes #14.