There will be no gap in your resume as long as you can exactly explain what you have done in these years. Get a business registration and try the self employment. If you fail your new employer will appreciate your "research" time in development and learning.