Moved config -> lib and simplified orm/model loading.