emit events and fixed bug causing users.json to reload every time

made jsonusermanager emit events if users are reloaded
print out a message in example main.js if users.json-file has been
reloaded