Move build and restarting functionality into its own function in mq.clj

Signed-off-by: Ken Barber <ken@bob.sh>