The sigin & signout components are available at /libs/foundation/components/account & you can Simply check the code to have some idea
how it's done and so make them available for use in your pages.
I've managed to create the log in and log out components and they are working fine.
But in IE, I can only log out only once. If I log in again, I can't log out.