Simplify build by removing dependent builds etc into context functions.
Refactor context to pull out build dependencies.
Added function to query for a build