Added c++11 flags to gcc's build flags.
CXX is now used in place of g++.
Brainstorming events. Demux is working, but not yet ideal.
Greatly simplified demux, but functors don't yet work.