Design of base components + Clock

* Code improvement
* Clock implementation
* Tests
* License headers
Fix: "handle only one timer and stop it there is no subscription"