Movie list can be sorted by rating

**Sorting**
* Movie list shows the average rating.
* When updated, the average rating will be rounded to 1 decimal.

**Prevent SQL Injection on movies search**
* Validated 'type' and 'sort' params against 'SORT_TYPES' and 'SEARCH_TYPES' for
valid params.