normalize resource paths, improve apitest.py (lists buckets and streams)