Add a block and localization support.

Also rearranges things inside CommonProxy a little to make the init
process somewhat clearer.