Revert 2b7bfbd..4f2dcac

This rolls back to commit 2b7bfbd223d81855cab50b24e7f9ce13a42d2805.
fixes RegisterWebApp method.