Set ranch to use version 0.6.0 as cowboy depends on that specific version. Will update when cowboy is updated to use the new version.
Added data_dir to the app file so that cake can be started independently (previously was set in the sys.config file).
Issue with snappy compression where it returns okay with an empty byte string. Raised an issue at https://github.com/fdmanana/snappy-erlang-nif/issues/6 . Code now specifically checks to make sure the compressed data isn't empty.

Second issue was caused by doing a query on a non-existent stream. It was possible that a race condition would occur where the stream would be queried before the files existed on disk causing the client to get disconnected.
This commit passes all the eunit tests but it generates errors about corrupt headers. Needs more work but pushing it for now.