Refactored binding to use hsc2hs. Implemented V8

type handling