Fix bugs in parsing LocalSettings.php for DB info

Was previously assuming prestine lines consisting of a variable
assignment with nothing more. Inline comments or strings with semicolons
or other complex characters would break the parser.

#23
Rename class to follow unit tested class name