Source formatting
Rename mapping.c to mapping.cc
Incorporate libevent.