Rearrange sample.project.clj.
Write .nrepl-port file in addition to .lein-repl-port. Fixes #1296.