API - better handling of POST args, groundwork for future use of Content-Type