Added MS SQL Server support
Bugfixes and cleanup MS SQL Server installation
- Fixed indentations.
- Fixed a bug in legacy.php: there was an error that was not checked for if the table 'fscache' did not exist in the database.
Merge pull request #1635 from irgsmirx/master-sqlserver

New/rebased/cleaned-up MS SQL Server support