Add paging to posts api
Add scoped_search gem.
Search posts by all attributes.
Allow order by to posts index endpoint
Add some tests. Allow per_page param
Minor code refactor
Remove spaces.
Add search by user test
Move logic to model. Add some unit testing
Test pagination with order
Minor refactor.
Merge pull request #3 from alemata/paging-and-searching

Paging and searching