separating web and domain responsiblities in anticipation of moving to templates instead of REST services