Generic linqjs typing

See also issue https://github.com/borisyankov/DefinitelyTyped/issues/3160.

This includes:
- Generic type definition
- Generators with correct return types
- Implementation of at least some major generators (especially 'From')
- Implementation of most used functions, others are more difficult need to be thought over better