make progmem constants const
register all endpoints with the endpoint registry
remove the unused EID parameter from endpoint accessors
add debug code to endpoint registration
sanitize packet formats

also, refactor a little to match. this removes a number of dynamic
memory allocations, leaving over not one instance of malloc/free.