Move addScript, addStyle and addHeader from OC_Util to OC_TemplateLayout

and also some small cleanups.

@icewind1991 @karlitschek @bantu @DeepDiver1975