Code updated with the last Express module version

Now it works with last version of Express.
Log comments and rest api improved.