added some functionality for sending packets, e.g. painting in map and setting and using rest library for packets and routing