Added init script for API job queue and improved init scripts