RavenDB-2478: implemented basic sqlReplication metrics server side only
RavenDB-2478 added some new metrics functions
RavenDB-2478 added some new metrics functions
RavenDB-2478: implemented matrics calls inside Insert and Delete operations
bug fix in SqlReplication
Merge branch 'RavenDB-2478' of https://github.com/maximburyak/ravendb into RavenDB-2478

Conflicts:
	Raven.Database/Bundles/SqlReplication/SqlReplicationTask.cs
RavenDB-2478: fixed some problems with the metrics unique ids and measuring of time
removed all time meter metrics from the system (left only time histograms)
some code refactoring:
unified all metric, histrogram conversions inside MetricExtension.cs,
moved SqlReplicaitonMtricsCounterManager to dedicated file,
access to sqlreplication metrics is now only from /debug/sql-replication-stats
RavenDB-2478: started working on UI part of statistcs
RavenDB-2478: implemented basic UI
RavenDB-2478: fixed percentiles not showing right
RavenDB-2478: some UI changes to sqlReplicationStats.ts and sqlreplication debug stats
RavenDB-2478: improving responsiveness of the ui
RavenDB-2478: continued applying improvements to responsiveness
added new "Metrics" button to editSqlReplication.html
fixed wrong url problem after saving in editSqlReplication.ts
added dialog before reset to sqlReplications.ts
Merge branch 'master' of https://github.com/ayende/ravendb into RavenDB-2478

Conflicts:
	Raven.Database/Bundles/Replication/Tasks/ReplicationTask.cs
	Raven.Database/Bundles/SqlReplication/SqlReplicationTask.cs
	Raven.Database/Counters/CounterStorage.cs
	Raven.Database/DocumentDatabase.cs
	Raven.Database/Server/RavenFS/RavenFileSystem.cs
missing file problem
fix for windows authorized databases
RavenDB-2607 In memory indexing state optimization (with fixes related to touching documents, bulk inserts and incorrect staleness detection for map-reduce indexes)
Removing unused TransactionInformation parameter from DocumentByKey and DocumentMetadataByKey storage methods