improvements to Snapi module API (mostly for sinatra extension)