Moved startup.sh into startup() funtion.
Added l-ctrl.c as proto replacement for l-ctrl.sh
Added synfilz.sh to l-ctrl.c as proto and probable function synfilz()
Added patch.c as replacement for patch.sh and put patch.sh as proto code
Added upgrade.sh to patch.c as proto for probably function upgrade()
Added dopatch.sh to core as forgotten script necessary for patching.
Added dopatch.sh to patch.c as proto and probable dopatch() function