[cyb-59] JS fetch auth library implemented.

Features to be implmented:
1. Tests;
2. Build system.
It seems to be the case that host, port, ssl are optional, whereas user, pass are required.
Place the required parameters before the more optional ones. Enables easier usage of the function when the user wants to use default values:
```func(null, null, null, myUser, myPass)```
vs
```func(myUser, myPass)```