wip
merge
add rack/cors
add templates controller to handle x-domain
template should not need to reference job