Interface to PLUMED

Do not merge this yet, work in progress.