Raven db 1343 - more optimal dynamic index creation

Probably not ready for merge yet, but this is a statement of work under way!