First attempt to get context-based input working

Try to see if context-based input works.
Add slaving of timers to another timer.
If a timer is paused, all timers that depend on it (recursively) are also paused.
EntityFactory now sets the Entity type member variable.