Added create_window function.
Replaced some xcbwindow_init code with create_window call.
Fixed passing foreground twice on init function.
Added init_set function
Replaced set initializing code in engine_init_sets with init_set call