minor refactor, added specs
minor refactor, added specs

jasongin/cordova-lib,phonegap-build/cordova-lib,purplecabbage/cordova-lib,vladimir-kotikov/cordova-lib,tony--/cordova-lib,ogoguel/cordova-lib,polyvi/xface-lib,ktop/cordova-lib,revolunet/cordova-lib,Icenium/cordova-lib,meteor/cordova-lib,cordova-ubuntu/cordova-lib,stevengill/cordova-lib,surajpindoria/cordova-lib,filmaj/cordova-lib,marcuspridham/cordova-lib,shazron/cordova-lib,apache/cordova-lib,alsorokin/cordova-lib,ogoguel/cordova-lib,surajpindoria/cordova-lib,shazron/cordova-lib,driftyco/cordova-lib,surajpindoria/cordova-lib,apache/cordova-lib,e2l3n/cordova-plugman,surajpindoria/cordova-lib,polyvi/xface-lib,polyvi/xplugin,matrosov-nikita/cordova-lib,apache/cordova-lib,revolunet/cordova-lib,meteor/cordova-lib,revolunet/cordova-lib,shazron/cordova-lib,carynbear/cordova-lib,corimf/cordova-lib,purplecabbage/cordova-lib,gorkem/cordova-lib,cordova-ubuntu/cordova-lib,filmaj/cordova-lib,filmaj/cordova-lib,abstractj/cordova-lib,meteor/cordova-lib,matrosov-nikita/cordova-lib,polyvi/xface-lib,shazron/cordova-lib,theaccordance/cordova-lib,surajpindoria/cordova-lib,timwindsor/cordova-lib,carynbear/cordova-lib,vladimir-kotikov/cordova-lib,vladimir-kotikov/cordova-lib,AxelNennker/cordova-lib,driftyco/cordova-lib,jasongin/cordova-lib,shazron/cordova-lib,Icenium/cordova-lib,gorkem/cordova-lib,Icenium/cordova-lib,jasongin/cordova-lib,jasongin/cordova-lib,corimf/cordova-lib,theaccordance/cordova-lib,cordova-ubuntu/cordova-lib,timwindsor/cordova-lib,gorkem/cordova-lib,ktop/cordova-lib,meteor/cordova-lib,infil00p/cordova-lib,jasongin/cordova-lib,meteor/cordova-lib,marcuspridham/cordova-lib,blackberry-webworks/cordova-lib,tripodsan/cordova-lib,meteor/cordova-lib,csantanapr/cordova-lib,csantanapr/cordova-lib,blackberry-webworks/cordova-lib,driftyco/cordova-lib,purplecabbage/cordova-lib,marcuspridham/cordova-lib,revolunet/cordova-lib,csantanapr/cordova-lib,stevengill/cordova-lib,theaccordance/cordova-lib,purplecabbage/cordova-lib,blackberry-webworks/cordova-lib,blackberry-webworks/cordova-lib,blackberry-webworks/cordova-lib,revolunet/cordova-lib,stevengill/cordova-lib,tripodsan/cordova-plugman,cordova-ubuntu/cordova-lib,carynbear/cordova-lib,carynbear/cordova-lib,tony--/cordova-lib,csantanapr/cordova-lib,abstractj/cordova-lib,corimf/cordova-lib,ogoguel/cordova-lib,ogoguel/cordova-lib,tony--/cordova-lib,abstractj/cordova-lib,Icenium/cordova-lib,tripodsan/cordova-lib,driftyco/cordova-lib,timwindsor/cordova-lib,polyvi/xface-lib,timwindsor/cordova-lib,abstractj/cordova-lib,tony--/cordova-lib,dpogue/cordova-lib,alsorokin/cordova-lib,phonegap-build/cordova-plugman,driftyco/cordova-lib,AxelNennker/cordova-lib,filmaj/cordova-lib,jasongin/cordova-lib,cordova-ubuntu/cordova-lib,theaccordance/cordova-lib,carynbear/cordova-lib,theaccordance/cordova-lib,dpogue/cordova-lib,vladimir-kotikov/cordova-lib,ktop/cordova-lib,stevengill/cordova-lib,ktop/cordova-lib,corimf/cordova-lib,ktop/cordova-lib,filmaj/cordova-lib,surajpindoria/cordova-lib,stevengill/cordova-lib,infil00p/cordova-lib,carynbear/cordova-lib,AxelNennker/cordova-lib,dpogue/cordova-lib,alsorokin/cordova-lib,AxelNennker/cordova-lib,csantanapr/cordova-lib,tony--/cordova-lib,polyvi/xface-lib,apache/cordova-lib,alsorokin/cordova-lib,marcuspridham/cordova-lib,tripodsan/cordova-lib,corimf/cordova-lib,alsorokin/cordova-lib,surajpindoria/cordova-lib,infil00p/cordova-lib,Icenium/cordova-plugman,theaccordance/cordova-lib,abstractj/cordova-lib,Icenium/cordova-lib,gorkem/cordova-lib,matrosov-nikita/cordova-lib,purplecabbage/cordova-lib,apache/cordova-plugman,blackberry-webworks/cordova-lib,abstractj/cordova-lib,vladimir-kotikov/cordova-lib,carynbear/cordova-lib,vladimir-kotikov/cordova-lib,tripodsan/cordova-lib,phonegap-build/cordova-lib,blackberry-webworks/cordova-lib,stevengill/cordova-lib,gorkem/cordova-lib,tripodsan/cordova-lib,ktop/cordova-lib,corimf/cordova-lib,AxelNennker/cordova-lib,driftyco/cordova-lib,matrosov-nikita/cordova-lib,abstractj/cordova-lib,Icenium/cordova-lib,alsorokin/cordova-lib,jasongin/cordova-lib,phonegap-build/cordova-lib,dpogue/cordova-lib,timwindsor/cordova-lib,phonegap-build/cordova-lib,ogoguel/cordova-lib,marcuspridham/cordova-lib,tony--/cordova-lib,infil00p/cordova-lib,ogoguel/cordova-lib,gorkem/cordova-lib,csantanapr/cordova-lib,gorkem/cordova-lib,tony--/cordova-lib,timwindsor/cordova-lib,csantanapr/cordova-lib,matrosov-nikita/cordova-lib,timwindsor/cordova-lib,driftyco/cordova-lib,matrosov-nikita/cordova-lib,corimf/cordova-lib,infil00p/cordova-lib,dpogue/cordova-lib,filmaj/cordova-lib,cordova-ubuntu/cordova-lib,polyvi/xface-lib,Icenium/cordova-lib,shazron/cordova-lib,apache/cordova-lib,AxelNennker/cordova-lib,marcuspridham/cordova-lib,AxelNennker/cordova-lib,revolunet/cordova-lib,phonegap-build/cordova-lib,dpogue/cordova-lib,phonegap-build/cordova-lib,theaccordance/cordova-lib,cordova-ubuntu/cordova-lib,ogoguel/cordova-lib,tripodsan/cordova-lib,alsorokin/cordova-lib,infil00p/cordova-lib,tripodsan/cordova-lib,polyvi/xface-lib,marcuspridham/cordova-lib,vladimir-kotikov/cordova-lib,infil00p/cordova-lib,meteor/cordova-lib,corimf/cordova-plugman,revolunet/cordova-lib,purplecabbage/cordova-lib