fix bugs in app.rb, simple API completed.
add Gemfile.lock