Added authorization support

Just Basic for now - which is less of a limit than it would normally
seem
RDFa 95%
RDFa 100%

Also, some file refactoring