Added a ProxyPassword class in Controller

This class contains all the code needed to encrypt and decryptt the
proxy password
Added tests and fixed bugs for ProxyPassword
Change ProxyPassword to use device_id instead of token