Rewrite everything using object-oriented way
Add helper methods
Completely rewritten newsPage(). Safe and elegant.
Code cleanup + fix for large page numbers
Fix checking for page numbers. Add execution time to compare different API implementations.
New function content() to get content for a news item.
Add function to return JSON encoded errors.
Merge pull request #1 from khanov/Simple-JSON-Version

Simple API, JSON version