Feature sinatra browse

Refactored the webapi to use Sinatra-browse