Adding support for basePath in settings, fixes #23