Bug 1048916. Convert a bunch of layers from nsAutoPtr to UniquePtr. r=roc

This makes the ownership of LayerProperties more clear.

--HG--
extra : rebase_source : 5d786a246337353522fc1d6e2c252e98e673e936