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

also update erlang dependency and add code to create log file
directories