Optionally use civetweb instead of apache

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Don't run apache functions if not using apache

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
Generate subtasks instead of copy/pasting them

Signed-off-by: Zack Cerza <zack.cerza@inktank.com>