Update back end for user reference emails

Also fixes an issue with out of date protos and out of date DB
calls. Adds a new email generator for the new email type as well
as the generated proto for that type.
Add support for user assigned badge emails

Adds BadgeDao, Badge proto as well as dao functions for retrieving
badges. Also adds generator, template and proto for new badge type
Add license info
Rename getTaskTranslator function

Change its name to getUserClaimedTask to match the db
Print debug statement when user's task stream email is empty

Print debug ststement instead of sending an email to the site admin
list.
Fix wording on reference emails

Change chunking and post-editing to segmentation and desegmentation
respectively
Update getArchivedProject function

Add extra arguments added in last update of db schema
Fix password reset emails