refacture base script to use classes
create admin and frontend class, test salesking login via js, big cleanup
minor cleanup in base