Replace 'register' with 'update'

The command-line command is renamed for consistency with GHC.
The "register" hook name is kept, but its semantics is changed.

Fixes #4 (together with a corresponding change in Cabal)
Use handwritten JSON instances for db

Fixes #8
Require supported languages information from compilers
Command line: accept language parameters as -G