Use the official APT repo for installing Elasticsearch.

See http://www.elasticsearch.org/blog/apt-and-yum-repositories/ for more info.
Use modified init script to start elasticsearch.
Use non-Oracle Java.
Install curl and run all commands in one step.
Fixed minor typo.
Revert that one line kerfuffle.
Don't be so quiet.
More changes.
Removed uneeded call to locale-gen.
Reordered calls a bit.
Removed ulimit calls in run script because that depends on the host system.

Also fixed a missing dependency (sudo).
Merge pull request #1 from jezdez/debianized

Use official APT repo.