Updating of detached Focus/Exclude menu.

The "Saved conditions" of the Focus/Exclude popup menu wasn't updated for detached windows. Did some refactoring to prevent problems like that in the future.
Replaced some SimpleDateFormat with joda.