fixed url and path resolving
improved phpdoc
more tests for invalid redirects
uses config import for sample app
url function now lowercase
better exceptions, proper http codes, GET & POST login methods