Rewrote service binder, better notifications

Portals are now communicated through the binder, fixing the ArrayIndexOutOfBounds errors when MainActivity is closed.  Key counting has also been added.