Ignore .log, .pid, Gemfile and Gemfile.lock.
Use api handler through a Class instead of Module.