HA-libs: added common definitions
HA-libs: added ha_ns namespace