Removed unused variable
More to: Moved module handling to a separate class
Added json-handling for the access control module