Single registration per webapp

This PR fixes Issues #4 and #5