Make sure all MMDB_ prefixed functions are in MMDB.h

Change MMDB_vget_value to a local vget_value function
Move all local function prototypes to the top of MMDB_Core.c so we can order them sanely

Also wrote a tool to regen the prototypes so we don't have to manage this by hand.