Backend changes to pass more info to the document
Added riak backend

Might not work..