Add context module, rename context to ctx in method args

Change-Id: Ifefaae130cb3c1652e851356219c217c1dfd1509