Allow erlang ad-hoc functions in m/r (allow_strfun)
Fix some bucket-related breakages.
Bunch of pep8 and pyflakes fixes.
Merge branch 'master' of https://github.com/wamdam/riak-python-client into pevm-wamdam-strfun
add a test & try to catch when allow_strfun is false
tweak iterator locking to remove leak and deadlock issues.
Make set/get_encoded_data into a real property.

This changes the semantics such that accessing the 'data' property
will cause the encoded data to be deserialized. The converse is also
true: accessing the 'encoded_data' property causes the Python data
types to be serialized. If a proper encoder or decoder is not
registered for the object's content-type, an exception will be raised.
This means that the assumption about 'data' as a string being
equivalent to 'encoded_data' is no longer valid and existing code that
relies on that assumption will break.
alter pool iterator grinder to work in its new location
tweak some test parameters to test more stressfully
enhance iterator test to be more like pool grinder
update with a more minimal fix and a better understanding of the
problem.

For the record:
  Our deadlock occurred when the __all_claimed check passed, but when
another thread released the last element in the pool before we took
back up the lock.  Doing the check inside of the lock (thus preventing
mutation of the claimed state for elements) closes the loophole for the
race.
  Making the pool lock re-entrant and setting the condition variable
might not be required, but it affords us a little bit of extra safety.
pep8 fixes, decrease iterator test time
narrow the scope of the catch so that fewer errors are masked,
append the original error for user evaluation.

this still masks typos in the strfun code, because they're
indistinguishable from the strfun not allowed message,
and it's impossible to tell, client side, which is which.
Merge pull request #212 from basho/pevm-iterator-fix

tweak iterator locking to remove leak and deadlock issues.
Use TypeError instead of RiakError.
Updated documentation to reflect `port` and `transport_class` configuration option deprecations to `RiakClient`.
Merge pull request #214 from hectcastro/port-docs

Updated documentation to reflect `port` and `transport_class` deprecations
RiakObject._encode_data is no longer used.
Deprecate new_binary and new_binary_from_file.
Merge pull request #213 from basho/sdc-remove-binary

Make set/get_encoded_data into a real property.
Flatten and reapply #202 on top of master.