Restructure code.
Add unit test for PicasaWeb API.