Allow to directly register an extension. Closes #46

Signed-off-by: crynobone <crynobone@gmail.com>