major update to core functionality; added login/logout and post flow