Add function headers to server-side plugin files