CTemplate: Switch from CSmartPtr to std::shared_ptr

Signed-off-by: Uli Schlachter <psychon@znc.in>
WebModules: Switch from CSmartPtr to std::shared_ptr

Signed-off-by: Uli Schlachter <psychon@znc.in>
client auth: Switch from CSmartPtr to std::shared_ptr

Signed-off-by: Uli Schlachter <psychon@znc.in>
CSmartPtr: Remove, superseded by std::shared_ptr

Signed-off-by: Uli Schlachter <psychon@znc.in>
modpython: Switch from CSmartPtr to std::shared_ptr

Patch by DarthGandalf, I just committed it to git.

Signed-off-by: Uli Schlachter <psychon@znc.in>
controlpanel: rename GetUser() to FindUser()

Avoids conflict with CModule::GetUser()
Modules: use public API

Avoid accessing protected member variables directly, so
there's a chance of cleaning up the module API later.
Write disabled status to chan config
Fix #597: make autoop save added masks
fix #690: make autoattach a network module
Merge pull request #701 from jpnurmi/modules-pubapi

Modules: use public API
Merge pull request #702 from jpnurmi/disabledchan

Write disabled status to chan config
Merge pull request #706 from jpnurmi/autoattach

fix #690: make autoattach a network module
Merge pull request #703 from jpnurmi/autoop

Fix #597: make autoop save added masks
Fix CModules::LoadModule() return message handling

[ >> ] This is an example[This is an example] [/path/to/mod.so]

becomes:

[ >> ] This is an example [/path/to/mod.so]
Add CIRCNetwork::LoadModule() helper

Makes it easier to retry loading replacement modules when
loading retired modules fail.
CIRCNetwork: add support for join delay (resolves #586)
controlpanel: get/setnetwork joindelay
webadmin: let specify join delay for networks
Add CUser::LoadModule() helper

Makes it easier to retry loading replacement modules when
loading retired modules fail.