Added an AjaxFactory which constructs the needed scripts with the help of registered Widgets.
Implemented Ajax update functions for all widgets.

Todo: Implement javascript timer for uptime (much more efficient than updating from server each second)

This implementation will probably be refactored later (each widget can now only have 1 interval now...).