Support to set and get auto archive preference

Enabling auto archiving is the basic requirement to store the message
history on server.
Merge pull request #31 from arielscarpinelli/archive-preferences

Support to set and get auto archive preference