More unit tests for PoC API slice.

* extracted pecan-specific code into pecan_base
* added support for HTTP methods beyond GET
* added example POST test

Change-Id: I1be1d3c81e1b6142d9c33a22e26552a6569b1334