Made buffer_t it's own class instead of typedef of std::vector<uint8_t>, needs shitload of testing.
Just do what the teacher said you shouldn't and derive the buffer_t from std::vector<uint8_t> instead of reinventing all the bullshit entailed.
Added hash functions and renamed buffer_t::data_ptr() to buffer_t::getptr() to be consistent with strings.
Fixed buffer hash crashing everything with empty buffers.
Moved event #defines from _module to _common
Moved more common stuff from _module to _common