Implemented resource rating. 

 - A resource can be voted only once per user.
 - Added Foundation\Resource::hasBeenRated($id,$username).
 - Added Entity\Resource::hasBeenRated($username).