Issue 171-3: Base implementation of HAPI framework

Base layer of the HAPI framework is basically implemented by these commits.
From now, I'll make actual body of HAPI for ZabbixAPI and Nagios.