Added logging support for the website. Added comments for some mobile/common methods.