added api tests
test code cleanup
better mark_as_read api
added rest api
fixed tox tests