Dev internal

Separate controlpanel.js into 2 pieces. #101