Make Sailor cross-environment compatible

This update makes Sailor run in non-Apache servers with CGILua, or Apache with CGILua or mod_plua instead of mod_lua