refactor inner classes from riak.php into separate classes. move http-specific code into backend class that implements backend protocol