Accession IMSR earlier and using new patterns
Made accessioner take username when function is called to be more
compatible with web services
Organized imports