Added the waypoint system to the modules

Also fleshed out entity_api.cpp, but that's just filler.