Small improvements:

- Async server works fine with the proxy function since 0.5
- Rename setId with setRandomIdentity for consistency
- Minor refactorings