Bugfixes, added pagination to historic device messages