Remove use of `require_tree` in javascript
Remove use of `require_tree` in javascript

`require_tree` increases the asset precompilation
time. It’s still quite slow though.

Also separated out the dependencies into our own
js and libraries we are using.

This stopped both the min and normal copies of
mermaid.js being included.
Motejl/open-data-certificate,zoul/open-data-certificate,Motejl/open-data-certificate,zoul/open-data-certificate,theodi/open-data-certificate,ahmadassaf/open-data-certificate,istvan-antal/open-data-certificate,theodi/open-data-certificate,zoul/open-data-certificate,istvan-antal/open-data-certificate,ahmadassaf/open-data-certificate,theodi/open-data-certificate,Motejl/open-data-certificate,zoul/open-data-certificate,istvan-antal/open-data-certificate,theodi/open-data-certificate,Motejl/open-data-certificate,ahmadassaf/open-data-certificate,ahmadassaf/open-data-certificate