Initial debian packaging
Merge pull request #49 from racker/add-debian

Initial debian packaging
pkg: debian: create etc dir in case it doesn't exist

slight oversite in not creating the etc dir first.
pkg: monitoring: debian: add upstart script

add initial upstart conf file for the agent
agents: monitoring: fixup config file to not use state dir

the config file with token, endpoints, etc shouldn't live in /var/run/*/states

Move it to /etc/ cfg file instead and pull the parsing stuff out of the state
classes into a config file class.

Then install a static config file to /etc/rackspace-monitoring-agent.cfg
pointing at 127.0.0.1 for now.

TODO:

- Do we need access to cfg files from C (maybe yes for zip loading?)
- Create format for string contants to share between C and Lua
lib: virgo_lua: move virgo_os to virgo.os

create a configuration table called virgo available to the entire
context, put OS in it.
lib: virgo: create virgo.config table

Share the config objects between C and Lua. v->config is a linked list
of key/value pairs for C and virgo.config is a dictionary table.

Have monitoring-agent.lua use this instead of using the stateFile logic.
lib: virgo_lua: export default branding to lua

route default branding stuff to lua via virgo[key]
virgo_brand: add state directory to branding

move the state directory out of monitoring-agent.lua and into the branding file
Merge pull request #50 from racker/daemon-plumbing

Daemon plumbing
Merge remote-tracking branch 'origin/master' into cleanup

Conflicts:
	agents/monitoring/lua/monitoring-agent.lua
virgo_brand: setup default zip location to /usr/share

make the default zip location point to /usr/share so the daemon can run
without any arguments from any cwd.
agents: monitoring: log in json for ConnectionStream

the err may not have the fields expected for that format, log to json for now.
Merge pull request #51 from racker/default-zip-location

Default zip location
fix monitoring-agent.lua
use 127.0.0.1
add a doc blurb to RegisterCheckState
remove unused timeout
create log() instead of getLog() within AgentClient
fix getClient