added AuthComponent::functions, closes #7
added controller callbacks, part of #6