added edit command that uses the system EDITOR

1. adds $EDITOR and $VISUAL support
1. bumps WSAPI version to 1.42
1. adds some general purpose methods for retrieving a single artifact and typedef by FormattedID without using the adhoc.js endpoint (not supported in WSAPI 2.x).