Moved constraint functions to Constraint class, added Solver, State.
I forget?
Merge pull request #24 from niode/nathan

Moved constraints to Constraints class, added State, Solver.