Adding authentication plugin and reworked jphantomlib