rozpracovana autorizace
added support for auth and promise in ajax