site.js: also toggle v4 and id buttons when loading a sample
Fix a bug in site.js

Wrong call to .attr(), should have been .prop().

Also factorize a little more.
Change package names
Add tentative slf4j/logback dependencies

Still haven't figured out how to program it, so for now let them be commented.