Sanitize App ID on inputs, fixes #51

Check App ID on all entry points to the SDK and ensure it's either in the right format or a concise exception is thrown so the user knows what to fix.