Refactoring of shared functions

Some refactoring, to better organiza the code.
Also put back static weapons to be saved as objects by default,
but configurable using the A3W_saveable_vehicles_list.

If you want to have static weapons saved as vehicles, simply add the class
to the list.