Rename directory, few cosmetic changes.
move a function
cleanup/functions rename/debug
add client for the web API
use one single URL to query the JSON API, and pass the method name as a parameter