Add commandlinks to template
Added sort tag to secondary
Added sort tag to blog template
Add build_commandlinks in write_secondaey
Revised id_to_type
Added has_one_subtype
Added get_next