Rename P_RESULT_OK to J_RESULT_OK
Load Plugins
Move log and settings to library

 - This way they can be used from the plugins