Got most of the Constrainable.js working. Still need to do some more tests before cleaning up