first stab at ads

Do not merge yet,
For review only now
no globals unless this is 3rd party