custom indexes

this is for issue balderdashy/waterline#109  It adds support for custom indexes.