[Android] Fix potential memory leak in XWalkViewInternal

Use WeakReference to register ActivityStateListener.
Otherwise, the ActivityStateListener will hold
a reference of XWalkViewInternal as in static observer
list.
Bump version to 8.36.173.0
Merge pull request #2198 from wang16/fix_activity_listener_leak

[Android] Fix potential memory leak in XWalkViewInternal
[Android] Naming refine for packaging tool

First, the new w3c manifest spec requires accepting any string to be application name.
However in previous make_apk process, they were treated as invalid input.
Second, in the past time, this part of logic is always buggy and
each sub process is validating and modifying the name passed by.
It's a good time to consolidate all these codes and validate the name at beginning,
to produce all necessary strings (transferred from the input name)
for all purposes during the make apk process.