Adding logging framework, putting hooks in for activity and views

Change-Id: I5c6cd19426ff9629d96884c1aee8e2f8b55076ef