improvements with POST handling, and api_test page.