Change the API for the extensions registering.
Fixes comment for registerExtension().
Fixes the example accordingly to the new API.
Missing one file with c957607bd9b1ac641adcaab79ef8be95df6b8df4.
Update README accordingly to the new API.