Revert "config: use "long int" as required by my version of libconfig"

This reverts commit 07bcc14e93564533261dbaec9080a383334323dc.
hook up per model and move to libevent