Formated code CoAP base driver. Turned classes that imitated enums to enums in CoAP base driver. Made collections to use generics/java8 and fixed few bugs that were unveiled due it.