restructured resource.languages field, implemented bcp47 field

Closes #93