core: reset cur_opt shortcut after use, it points to local variable

- safety to prevent invalid access on future extensions

(cherry picked from commit 1faf19fa7d34528b6cc15ffcb1ec91a6c6074e90)
geoip: free allocated pointers at startup in case of error

- cleaner shut down

(cherry picked from commit 5db25855613f922059b53d7149e97b4985120de0)
kamctl: use DEFAULT_Q variable in ul_add command

(cherry picked from commit 8fac19ba52345a4dd10480ef4efb62012bbbbff6)
tmx: handle branch_route for $T_reply_code

- use latest sent reply code
- related to the log message reported in FS#445

(cherry picked from commit 2e28163f2f3e756c89f8cc43df0644be38c5e06f)
usrloc: generate callid at startup and increase cseq for records added via mi

- should fix FS#448, reported by Savolainen Dmitri

(cherry picked from commit 66c497fdf4ac1c3b889a7c3b50c3e5fed770cf0b)
usrloc: refresh call-id value in case of update of location record

- related to FS#448

(cherry picked from commit c2b334bf41cbe6fa7b7e15d825dca1fa36c33770)
msilo: check if the register has contacts with positive expires value

- otherwise is un-registration and no new contact to dump messages
- reported by Anthony Messina

(cherry picked from commit 6559c4383858d472637807c6ec4dd1e0616507fa)
pua: solved warning on comparing unsigned expression

(cherry picked from commit 55b42c5ba9e78b1d6662d45f1b68898bc67548c9)
pua_xmpp: fixed wrong define guardian id

(cherry picked from commit 6b833a82cb8c0978fae54afa086eff6d5479fa17)