Seperated context manager from global.js

Started workflow control, pulled context manager prototype out into its
own physical file