Dialyzer fixes and turn on warn_untyped_record & warnings_as_errors
Fix test compliation
Fix a bad refactor
Merge branch 'develop' into cleanup/dialyzer-fixes

dialyzer should now pass cleanly.
There are still a couple of places where results are
ignored but probably should be handled differently.

Conflicts:
	include/bitcask.hrl
	src/bitcask.erl
Propagate too many iter opening error
Merge pull request #139 from basho/cleanup/dialyzer-fixes

Dialyzer fixes and turn on warn_untyped_record & warnings_as_errors