Database: implemented correct support for empty array NOT operator [Refs #667]

Removed old behavior, which could produce malformed SQL query.
Condition must have parentheses around all expressions with empty array.
Merge pull request #1105 from hrach/db-not

Database: implemented correct support for empty array NOT operator [Refs #667]
test refactoring, used new assertions
DI\Container: added $args to createService()
DI\Container: factory methods for non-shared services changed from createXyz() to createServiceXyz() (BC break)
test refactoring
Database: deprecated Connection::table()
Merge pull request #1111 from hrach/database-table

Database: deprecated Connection::table()
NetteExtension: fixed compatibility with deprecated Connection::getSelectionFactory()
Database: fixed ->wherePrimary() on backjoined selection