Hello
Tramadol doesnt rest you in square one as it is stated but it will definitely impeded your withdrawal treatment. Retrospectively, if tramadol has helped you in feeling better, I feel the symptoms that you were suffering from were chronic withdrawal symptoms of opioids. If the symptoms are troubling you, then further treatment with subutex is recommended.
Coming to your second question, Tramadol is a temporary treatment for migraine and as a painkiller it can be used when ever you have a migraine. It can be taken 4-5 times a month without any possibility of addiction. The good drugs for prophylaxis of migraine are divalproex sodium, flunarizine, propranolol and topiramate. You may discuss these options with your treating doctor.
Regards