Mix of refactoring of the Markasread controller plus adding of ajax "mark board read" and "mark all messages as read" in an ajax fashion

Signed-off-by: emanuele <emanuele45@gmail.com>