* changed the output of --list command to be more sane * use promises and simplify API of swm.js * simplify swm.js a bit