add changes before connection
Merge remote-tracking branch 'sb/master'

Conflicts:
	lib/megam/api.rb
changes made for api.rb
Minor cleanup (puts statements)
Node and log skeleton refresh