Added first draft of basic auth
Some changes on the data internals and reflection infrastructure