Added res services template, moved code out of test area.