added basic auth class

inspired by fatfree framework
placeholders