Fix and improve TypeScript declaration

Now we can use helper functions like orm.ge, orm.like, ecc in Find and sqlquery is a vaild typescript module delclaration.

Commit 2:
Now it's possible to do thing like
```TypeScript
req.models["users"].find({ "counter": orm.lte(25) }).each((user) => {
console.log(user["counter"]);
});
req.models["users"].find({ "counter": orm.between(1, 205)
}).each().filter((user) => {
return (user["counter"] % 2) === 0;
}).count((num) => {
console.log("Users with counter between 1 and 205 and with even counter:
"+ num);
});
```