make a cache test function and tests
clean up the archive recreation and make sure we serialize it to a file
functioning read-only marmalade package archive
add auth, package handling and a first test for package handling.
package handling tests and code. switching everything to lex scope.