Added /api/0/job/steps/<jobstep_id>/allocate.

Also added new Status.allocate constant.
db.session.add(to_allocate) right before the commit