Add licensing information

* Add LICENSE file (AGPLv3)
* Add contact email to README
* Add copyright header-info to script
* Add TODO about possibly adding copyright headers from references
  if they have code which is similar.
* Move references-list up next to copyright header in the meantime.
* Add getopts handling to script, including a flag to output source.