Continued the work on the gui, it now supports awhole lot more components.

Added Memory.java which reports memory usage of the application.

Various fixes.