localization

massive rework to localization both client and server side. also moved
all event packing to the class on server side to keep it separate from
routes.