Switched to using rebar as build tool.

Will eventually add to README, but useful commands are:
  (a) rebar compile
  (b) rebar clean
  (c) rebar doc
Changed file permissions back to 644.