adds all of the main functionality for comments

This also adds some sweet js :) you need to be logged in for it to work. Haven't added all of the pretty functionality for encouraging you to log in if you are not logged in