Move translations to AMOS.
Shape validation should be more whitespace-tolerant.

Also clean up the unit-test code.
Fix codecheker and jshint warnings.
Bump version number.