Remove compile warnings from unused static

Replaced "static functions" from the header files with real
function calls which is located in another object file. This
removes a lot of the "unused static" warnings emitted from
a lot of the files in the module.

Change-Id: I2419fcf7947991ee3fb885cabec8bc8d45810c0f
Reviewed-on: http://review.couchbase.org/30409
Tested-by: buildbot <build@couchbase.com>
Reviewed-by: Volker Mische <volker.mische@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>