add as_user and as_root to local_machine. closes #27