Partial fix for millisecond timestamps where more than 32,767 data points
were stored in a single RowSeq. Larry Reeder found this bug where an assertion
was thrown because the short index rolled over. Changing it to an int will help
but only allows up to 2.1M data points in a row whereas the schema allows 4M.
TODO - figure out an efficient means of keeping the full 4M bytes in memory
with quick access for iteration.

Signed-off-by: Chris Larsen <clarsen@euphoriaaudio.com>
Fix Debian package creation

create_table.sh needs to be copied into the package preparation
directory.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Use `Cache-Control: max-age=0' instead of `no-cache'.

Varnish ignores `no-cache', and since `max-age=0' works just as well
for both Varnish and web browsers, and makes for simpler code, just
use that instead.
Remove extraneous space.

This fixes #247.
Updates to debian init script

 - support /etc/default/opentsdb
 - Add /usr/lib/default-java as a potential JDK path, this
   is commonly used as a symlink to the default jdk

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Provide a default value for os.name to avoid NPE in some cases.

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Kill trailing whitespaces.
Fix Debian init script

  - Fix bash test syntax error
  - Properly test that TSD has started successfully
  - Pass appropriate exit code to log_action_end_msg if TSD fails to start

Signed-off-by: Benoit Sigoure <tsunanet@gmail.com>
Merge remote branch 'remotes/official/next' into next