fix(flatten-threads): handle |#action=reply| correctly

The action to open the reply editor is usually handled by the Community
Console. With the flatten threads enabled, this sometimes opens a reply
editor corresponding to a nested reply which when used wouldn't post the
reply correctly.

Thus, this CL adds logic to handle the |#action=reply| ourselves to open
the reply editor adequately, as if the user clicked our own "Reply"
button. This opens the reply editor corresponding to the parent reply
(the first reply in the reply chain).

Fixed: twpowertools:180
Change-Id: I1d734cfe0e28971939d292121ad6144f9e9f7a9a
diff --git a/src/common/commonUtils.js b/src/common/commonUtils.js
index 3e0be66..76a23d9 100644
--- a/src/common/commonUtils.js
+++ b/src/common/commonUtils.js
@@ -1,6 +1,7 @@
 export function parseUrl(url) {
   var forum_a = url.match(/forum\/([0-9]+)/i);
   var thread_a = url.match(/thread\/([0-9]+)/i);
+  var message_a = url.match(/message\/([0-9]+)/i);
 
   if (forum_a === null || thread_a === null) {
     return false;
@@ -9,6 +10,7 @@
   return {
     'forum': forum_a[1],
     'thread': thread_a[1],
+    'message': message_a !== null ? message_a[1] : null,
   };
 }