Added server side startup hook support.

This is a draft implementation of the server-side hook. Works if both run-on is specified as server and path is referencing 'server:'.  Can be improved quite a lot - e.g. simultaneous support of client-side script could be added, just wanted to get feeback on the wip.