Refactor Bottle implementation, also fix bug

 bug was in (de)activate access control