sinatra api first commit. will refactor. need to add rspec tests