Langs for select

Added functionality for getting a list of languages to be used in a select box and fixed a bug causing duplicate entries for English (was adding 'en' and 'eng' separately).