Try to fix timing issue in RepeaterTest by increasing time limit and changing acceptable range:
RubyRepLiveTest: disable inherited integration tests
Nginx: add proxy_set_header X-Forwarded-For and X-Real-IP
ActiveMQ: allow custom config file

- Adds ActiveMQBroker.TEMPLATE_CONFIGURATION_URL
- Uses freemarker to parse config
nginx install: add --with-ld-opt and --with-cc-opt
Merge pull request #567 from aledsage/fix/Nginx

Fix nginx (for rhel and wordpress problems)
fix NetworkUtilsTest...throwsException

- UnknownHostException is now wrapped, so test needs to unwrap it to
  confirm it was the excepted exception type.
Merge pull request #574 from aledsage/fix/NetworkUtilsTest

fix NetworkUtilsTest.testGetInetAddressWithFixedNameButInvalidIpThrowsException
RepeaterTest: incorporate code review comments

- Mark slow test as "Integration"
- Use Stopwatch rather than Calendar for timing
Merge pull request #576 from aledsage/repeater

Repeater
Merge pull request #571 from aledsage/fix/ActiveMQ-configurable-template-config

ActiveMQ: allow custom config file
Merge pull request #561 from aledsage/fix/RubyRepLiveTest-disable-inherited

RubyRepLiveTest: disable inherited integration tests
return json primitives not strings, for sensor values:
for doubles when displaying, round to thousands place
use JSON array for datatables in sensor, activity, and config,
so we have more control about when/how they update,
esp for adding tasks dynamically (fnAddRow with DOM is incompatible with filtering);
table prettification, and additional (and a bit more standardised) toolbar for the table
fix code review comments, including mysql and rounding; and jasmine tests (they needed config.txt update);
policy config now shows the new style (though it still doesn't yet use json arrays);
also fix policy tab so it shows immediately,
and fix tab-switch error when we've reloaded a page