Fix test startup and ets backend badmatch

 * A bunch of apps need to be started for lager to work. Use the new
   application:ensure_all_started/1 call to have rafter start it's
   dependencies automatically.

 * While fixing dialyzer warnings I introduced a regression in
   rafter_backend_ets. This commit fixes that.