First cut repo table with totals.

Moved JavaScript from main.js to an opf-github file.
Tidied the functions and added totals for some elements, including
distinct languages.

Currently having a few issues with readme detection, applies also
to license and OPF YAML metadata file.