Added top post and top image REST API calls.