Comment ajax referrer checking

Added checking of referrer and string patwhay. Store pathway of object
commenting in database.