Ajax layers now load the defined parameters.

The parameters defined for an ajax layer were
completely ignored. Now they are passed by a
process of serialize/deserialize.