Moved schedule business rules to core project

Also moved getWorkItems and getResources from DbHelper in allocator
project to core project
allocator will be phased out eventually