persisting token in database.
minor refactoring
- minor refactoring and fixing email template
- fixed friendship acceptance flow
- fixed friendship rejection flow
- fixed link in email.
- fixed comparison bug where no data is available for either users.
- sorted the friend list alphabetically.
- fixed the accept email.
Merge branch 'compareWorkflowRefactoring'

Conflicts:
	quantifieddevRoutes.js
	website/public/js/hourlyEvent-diff-d3.js
- fixed email template