Fix for issue #10 -
Use the base URL when calculating the project name.
Implement some tests to confirm.

Signed-off-by: Nigel Magnay <nigel.magnay@gmail.com>