You cannot apply before you arrive as you have to be resident here.
Unless you get a job offer before you move you can come here for up to 3 months without registering as a job seeker, providing you have the funds to support yourself while you job hunt. If after 3 months you still haven't found a job then you can apply for an L permit for another 3 months, funds permitting. This can be extended for up to a year if you have the cash to keep doing it. General daily figure to work with is CHF100 so around CHF3,000 a month. You would also need to arrange Swiss health insurance cover once you apply for a permit of any kind.
If/when you get a job, or you arrive with a job offer already, you take your employment contract to the gemeinde/commune admin office and fill out a form to apply for or change your permit. If the contract is for less than a year you'll get another L permit, if it's longer you'll get a B permit which is valid for 5 years.
However, be aware that Switzerland voted to curb immigration from the EU back in February 2014 and that is due to come into force in February next year. Whether that's going to happen and what effect it's going to have on Swiss/EU relations/bilateral agreements if it does is still up in the air. https://www.sem.admin.ch/sem/en/home...wanderung.html
The EU previously refused to negotiate regarding Free Movement, then agreed to talk with the Swiss, now they say they won't do it until after the UK referedum in June and the Swiss government needs to put the final documentation, etc, to the Swiss parliament around August so there's a very tight window of opportunity for any negotiations to happen.