Merge pull request #386 from norv/elkpr/383

Elkpr/383
Merge pull request #390 from norv/csp

X-Frame Options header
Add quick 'n dirty Util class, legacy string functions from $smcFunc.

Signed-off-by: Norv <a.w.norv@gmail.com>
Quick ->elk_ replacement.

Signed-off-by: Norv <a.w.norv@gmail.com>
Refactor db layer. (add db classes, add init per type)

Signed-off-by: Norv <a.w.norv@gmail.com>
Add database subs general file, and mysql class. Initialize in the class...

Signed-off-by: Norv <a.w.norv@gmail.com>
Add postresql class with quick init.

Signed-off-by: Norv <a.w.norv@gmail.com>
Add SQLite class and quick initialization.

Signed-off-by: Norv <a.w.norv@gmail.com>
Quick fix for a database instance during shutdown.

Signed-off-by: Norv <a.w.norv@gmail.com>
Add base class for database classes. Adapt Mysql driver.

Signed-off-by: Norv <a.w.norv@gmail.com>
Adapted postgresql legacy subs file. Now it's a mere skeleton :P

Signed-off-by: Norv <a.w.norv@gmail.com>
Adapted Sqlite subs legacy file, to forward to the class implementation.

Signed-off-by: Norv <a.w.norv@gmail.com>
Name updates to elk.

Signed-off-by: Norv <a.w.norv@gmail.com>
Name updates. -> elk.

Signed-off-by: Norv <a.w.norv@gmail.com>
More updates of function names. (legacy functions, but potentially used for compat).

Signed-off-by: Norv <a.w.norv@gmail.com>
Another batch of names updates for legacy db functions.

Signed-off-by: Norv <a.w.norv@gmail.com>
Names updates for legacy sqlite functions.

Signed-off-by: Norv <a.w.norv@gmail.com>
Remove SQlite dependencies.

Signed-off-by: Norv <a.w.norv@gmail.com>
Remove elk_ prefix in init method name (for methods there is no need)

Signed-off-by: Norv <a.w.norv@gmail.com>
Simplify names, for database classes methods.

Signed-off-by: Norv <a.w.norv@gmail.com>