Lots of fixes to hmc-sampler

- A bunch of merge-related fixes.
- spcond support (fixes #4 )
- reworking of hmc-leapfrog proposal to recompute distribution parameters on each small step.