Added i18n for issue #22

Added English strings.
Moved json request success handlers into named functions for better
testing.