rap.core, webopi: add authentication support. Not finished yet.