fixed bug which listed links user is not allowed to access
added table for storing ratings
changed hJSON() to echo at least an empty json object
finished client rating code