[cmi] reuse catkin templates where possible, unify generated env/setup files (fix #371)