Abstraction-layer foundation and basic version of lock-system in place. (+ a shitload of refactoring and rewriting) (NOTE: Android version STILL NOT WORKING)