Merge pull request #51 from tamachado/master

Fixed issue #50: os.path.samefile not in Windows
Bug fixes for motion corrected sequence class
Refactoring of 2D HMM and work on 3D HMM.

Tests pass.
Working 3D HMM, though still contains rough hacks.

2D tests still pass. 3D displacements reasonable.
trim_coords for 3D displacements
Fixed exporting of frames.
Merge pull request #52 from pkaifosh/3D-HMM
Minor fix to sequence.py

Missing type cast caused motion correction to fail on Windows
Merge branch 'master' of https://github.com/tamachado/sima