safeUrlEncoder and support for shared libraries

- implementation of safeUrlEncoder
- tests
- support for share of code between client and server