Move functions that use internal structures out of slax.h
Merge branch 'dbapi' of https://github.com/Juniper/libslax into dbapi