Remove pointless indent
Split up dep checking
Some minor tweaks
Turn all dep checking into functions
Slight code reduction
Add dependency resolution
Add test for dep resolution
Remove pointless duplicate logline
Merge branch 'aphs-build-ifneeded' of https://github.com/aidanhs/shutit into aidanhs-aphs-build-ifneeded