Make it possible to pass configuration parameters to interfaces

Closes #9.