lib - Provide extension mechanism

Closes #1.
0.2.1