Added single comment controller for all content types, added permalink and  reply links to comments, fixed global $argl variable on command line environment, moved template scripts to js files.