Merge pull request #229 from maciejlew/master

LMSDB jako singleton + testy
CONFIG_FILE path as constant in index.php
Sets Smarty framework in Netbeans project properties
LMSConfig library for managing LMS config variables
Integrates LMSDB with LMSConfig
Hides database initialization to LMSDB class