Scheduler rewrite into client mode

- scheduler moved to a separate directory
- competely new main for the scheduler
- base for further changes
- initial support for new loging scheme