Modified the way we are creating leases. Lease creation is now a call to the scheduler's create_resource method. Introduced some initial tests for the scheduler and refactored its code such that it can discriminate between node and lease creation.