Added instance data to @session
Added general infrastructure for service checks
Fixed small bugs in command handling