dev-db/riak: bump to 1.3.1, add init and config scripts

also update erlang dependency and removed some problematical mkdirs and
chowns with the corresponding gentoo ebuild functions