Re. #19 -- client=rmangal

Also changes to the way filtering is done.
Version bump to 0.4.0 because of slight API changes.