V048 improvements

Some bug fixes.
Added messages GET and DELETE functions.
Added `stats` and `tags` endpoints (part of `Stats` API).