buildslaves db and data

Add DB support for tracking where slaves are configured and where they
are connected, and a basic data API layer atop that.
docs for buildslave resource type
minor tweaks