move lock and status related functions out into own files and add ability to prevent them being loaded
Merge branch 'refactor-flok.js'