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>
Merge pull request #11 from magnayn/master

Project name detection not working if base API url is not the root

Resolves #10