Implemented pagination. Close #7.

Ok, I'll refactor this during implementing #19