Add version to the BuildData.java file so we can print out the OpenTSDB version,
not just the git hash
Modify version RPC call to return the OpenTSDB version and use the JSON helper class for JSON formatting

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Extend BadRequestException.java with HTTP status code and details
Add HttpSerializer abstract class for serializer plugins
Add HttpJsonSerializer default implementation of HttpSerializer
Add DummyHttpSerializer.java for plugin testing
Add serializer_map_content_type and query_string hash maps for serializer
mapping
Add HttpQuery.setSerializer() to determine what serializer to use based on the
query string or content type
Add HttpQuery.InitialiizeSerializerMap() to scan the class path for serializer
implementations, should be called once per tsd
Modify the PipelineFactory constructor to initialize the serializer maps
Split out SuggestRpc into it's own file
Added "api/suggest" route
RpcHandler for HTTP requests now passes BadRequestExceptions to the serializer
Add tsd.http_show_stack_trace config option
Add method shortcut to HttpQuery since the API RPCs will need to check it
Add method checks to the api/serializers and api/suggest endpoints
Fix up TestHttpQuery with mocking required to initialize the HttpQuery object
Add TestSuggestRpc.java
Add TestHttpJsonSerializer
Fix assertEquals calls in TestHttpQuery where the expected value should appear
first
Add a number of unit tests to TestHttpQuery that now cover everything except
the HTML formatting calls

fixes

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Add "max" query parameter to SuggestRpc calls that lets users specify the number of results returned.
JAVA API remains unchanged.
closes #147

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

Conflicts:
	src/tsd/BadRequestException.java
	src/tsd/HttpJsonSerializer.java
	src/tsd/HttpQuery.java
	src/tsd/HttpSerializer.java
	src/tsd/RpcHandler.java
	src/tsd/SuggestRpc.java
	test/tsd/TestSuggestRpc.java