NEXUS-5749: Reshuffled

To make scheduler not need any extra deps (shiro, guava),
extracted the scheduler stuff from it, and made Nx core
provide the needed one.