updated to modern splunk sdk

npm install pulls-in more recent splunk sdk than originally coded against, so I've fixed the code for use against the more modern sdk. Also fixed some jade issues based on the version of jade installed via npm.