API: Added the computation of path prefix.

This allows to run the application with and without virtual host.
FEATURE: License editing.