Add max param to response of task list API.
Polish pagination logic.
Merge pull request #17 from ivanzhaowy/master

Pagination