split jsonusermanager module into two separate ones:

 * usermanager operates on an object containing the user accounts
 * jsonusermanager extends usermanager and operates on a JSON file

added unit tests for both of them, and updated api docs