Basic REST and JSON implemented, but need to adapt to take user
credentials.