Typo in CliOptions where the flag "--auto-metric" was written as "--auto_metric"

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Follow up patch for --auto-metric issue. Had to manually set the flag in
the Config class. Tested and works now

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Fix null pointer bug in Plot.java when no annotations were found

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Fix ArrayIndexOutOfBoundsException in TreeBuilder when an invalid separator
regex is given that results in a split array with 0 length.

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Implement the /api/stats endpoint
Move the Stats RPC class/handler into it's own file, StatsRpc.java
Add serializer format calls for statistics to be emitted as JSON objects

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Add missing TreeRpc "enabled" query string parse code

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Bug fixes for Tree boolean field parsing

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Fix Tree boolean setters where explicitly setting a flag to false does not
set the changed flag as the default boolean value is false.

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Fix boolean flag loading in Tree.fetchAllTrees()

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Merge remote branch 'remotes/official/next' into next

Conflicts:
	src/stats/StatsCollector.java
	src/tsd/StatsRpc.java
	src/tsd/TreeRpc.java