fix minor bug in test setup
add URI templating, command generation methods accept params

make method signatures on command generation methods stricter

draft http rest adapter (service.js), not yet incorporated