RavenDB-1439 Generate C# index definition from Auto indexes

and some fixes to indexes and edit index page