Adding average_rating method to Rating Model

Issue #89 needs to add a method in Rating model, where we can calculate the average rating of each idea when showing it

Please @mennaamr review this to be merged to master