Added way of wrapping Runnable to TimerTask to FunctionalUtils. Refactoring of CoAP