Custom index support

Basic index support so that you can have multiple projects/customers/whatnot separated