filter.rb: split off from query.rb -- mostly done modulo minor bugs and tweaks
query.rb: more closely done. But still needs work
apiresource.rb: remove erroneous class parameter.
credentials.rb; note this only deals with .netrc