API for creating fragments

Implemented basic API
Replace testunit with rspec
Using sql schema to support hstore