Blog pagination support

Changes:
- Structure of get-posts function's return value changed to also return total post count
- Blog now supports paginated navigation (prev and next links)
- Error response functions now take variadic args