Initial commit of borrowed code + changes.

Original source: http://www.codeproject.com/Articles/548416/Detecting-incoming-and-outgoing-phone-calls-on-And