Added template code & logic for category links

Also set up for pythonic handling for some list creation