Initial commit of mysql library, and session functions.