Add edge detection to functions menu in GUI.

Currently with fixed kernels, needs additional dialog for setting the
kernel size.

Also added Junit to dependencies.