Add language subtag registry

File downloaded on 2013-08-26 from:
http://www.iana.org/assignments/language-subtag-registry/language-subtag-registry
Script for setting up language subtag collection

This script will parse the IANA language subtag registry file
(which should be downloaded to language-subtag-registry.txt in the
same directory as this script) and populate a MongoDB collection with
the "language" and "extlang" records from the registry. The script is
intended to be run at the server's command line, like this:

    php setup-language-registry.php dbname

where dbname is the name of the Mongo database (e.g., "languageforge").
Merge branch 'master' into feature/langtypeahead
Use lowercase field names for DB language registry

The IANA language subtag registry is published with titlecased field
names, but our database convention is to use lowercase field names.
Fix main function of subtag registry parse script

It seems PHP only exposes the global $argv array when not in a
function. If most of a script's processing is in a main() function,
that function will need to take an explicit $argv parameter.
Convert hyphenated-field-names to camelCaseNames
WIP on languages: Language selection typeahead

This typeahead is not in the right place yet -- it probably belongs
in project creation, not in the project settings page. But it works
in its current state (though the Save button doesn't do anything),
so it's worth committing this code as a work-in-progress.
WIP: select language only at project creation

Since the language (or rather, its 2- or 3-letter code) is part of
the project code from which the database (and repository) name is
derived, we should not allow a project's language to be changed
after creation. Instead, we should ask the user to choose a language
during project creation only, and not change it thereafter.
Project codes should be all lowercase
Use project code for database name if possible

Project name should only be used as a fallback if project code (which
is "language-projectname") is not available.
Do not rename project DB when name changes

Since the project DB name is now based on the (immutable) project code,
not the (mutable) project name/title, we should not rename the Mongo
database when the project name is changed.
Merge branch 'master' into feature/langtypeahead

Will fix up any conflicts, then merge back into master

Conflicts:
	lexicon-server/src/models/ProjectModel.php
Move project creation into ProjectCommands

The project creation logic is getting a bit complex; it's time to
move it out of lf.php and into the commands/ directory.
Fix bug with typeahead invocation

Since the typeahead directive calls its provided search() function
with a parameter list {term: some_value}, the parameter provided in
the HTML invocation of the typeahead directive apparently needs to
be "term", and not any other parameter name. Before this fix, the
search term was "lagging" one character behind: e.g., for a project
in English, typing "engli" into the Project Language input field
would trigger a search for "engl" in the languages list. Typing the
next letter, "s", would search for "engli" instead of "englis". And
so on. With this fix, the search term is now exactly what was typed.
Merge branch 'feature/langtypeahead'