RD: refactor - move plugins into separate files. update user-history with login stuff + change customVar properties from 'var' to 'eVar'

Resolves #4