Spread the metrics better across kafka partitions

The previous code used the metric timestamp as the key for routing across
the kafka partitions. Since the timestamp is only accurate to the
second and we are expection > 20k metrics per second, this did not use
the kafka partitions well. The new code uses the timestamp plus
the count of metrics seen so far as the key. Performance tests
show a much better distribution

The meter metrics.published was changed to really count all metrics
instead of batches as it did previously

A new meter batches.published was created that counts the batches.

Change-Id: If2c58a19b2ae0056134385617a11877bb7f936e6
Merge "Spread the metrics better across kafka partitions"
Update API doc for Alarm Definitions

Explain how Alarm Definitions work and how they generate Alarms with
examples

Updated Table of Contents which was way out of date

Change-Id: I23c5531b645a2262abef50828f435fb7b9499521
Merge "Update API doc for Alarm Definitions"
Add alarm definition delete resource

Change-Id: If9a1b2c7b068056f352b41787922e6f7caa8b638
Merge "Add alarm definition delete resource"
Closes-Bug: Typo in MonApiModule.java where vertica was spelled vertiva

Change-Id: Ife3ff89740a24f7008eefd6e8db30f44cf562b3c
Add alarm definition list resource

Change-Id: I232f0d342cd410645cf1f18f88d685f8b7ff1c72
Merge commit '4c603739b04369ff523f6c3d82dd95aee879f9c1'
Merge "Add alarm definition list resource"
Fix sql injection vulnerability

Note that the dimension list cannot have any whitespace after the comma.

Change-Id: I6b5d4d572630252c393ff92b2b3cac5a8c21b56b
Add Alarms resources files

Change-Id: If2305a636b0b5eedc09a8f49ab9466c7bcc476ed
Merge commit '9a31307470834a58c9ede46f5fa0b173604f7e2c'
Fixed forwarding logs through the monasca-api. Additionally, one test has been commented as it is not passed and will need to be addressed at a later time.