Implemented a crude timer

... using $timeout we also update the ui, the supplied function is called with $apply by default