Feature/export lang

This is a fix for #1146

It adds a return to all language files, so they can be required either using AMD or node.