Adding multisite support

This satisfies the tasks in issue #15