add test for api calls for capsules
add parameter to api.capsule_ids to filter based on available size
pep8
upgrade to latest treq version. Fixes: longaccess/longaccess-client#2