HTTP Is BSON Independent

Modified the HTTP repository so that it is independent of the BSON
serialization format as well as the default string type for the index
template. This allows one to freely use the HTTP implementation of
astateful using any data format and index template. The motivation was
that HTTP was becoming too client specific.