Make @Template support controllers out of bundles

http://stackoverflow.com/a/10001019/745188