Cleanup items

* Looks for the most applicable open folder
 * The root is still only about a single open folder, but this is better than choosing the first open folder
  * Fixes workspace of multiple open codebases (not within a single folder)
  * Does not fix single folder that contains many apps
* Reduce redundancy across commands

Fixes #61