Add handlerid and handlertype to the cowboyapp template.