Ported chilitags.js to use most of chilitags 2

chilitags.js now has
- setFilter and find from Chilitags
- set3DFilter, set2DFilter, estimate, readTagConfiguration, setDefaultTagSize,
  readCalibration, getCameraMatrix, and getDistortionCoeffs from Chilitags3D

set3DFilter and set2DFilter respectively correspond to Chilitags3D::setFilter
and Chilitags3D::getChiliags().setFilter

encode, decode, draw, Chilitags3D::getChiliags().find, and
Chilitags3D::estimate(map<int, Quad>) are left as an exercise to whoever needs
it first ;)

The samples are GUI's to the full interface, e.g. one can set the filtering
parameters from input boxes. They ended upd being rewritten a lot...
Killed the cat
Work around Firefox's bug 879717
Minor display teaks and code cleanup

Tweaked the sizes and position of the tag label and block.
Removed the hard coded values, and call the camera matrix update.
Removed noisy logging.
Propagated default tag size update
Added a callback to read* functions

Reading a file is asynchronous, so we may need to be notified when
readCameraConfiguration and readTagConfig are done updating Chilitags. For
example, getCameraMatrix needs to be called after the camera parameters are
updated with readCameraConfiguration, not when it returns.